package com.situ.pattern.observer1;

public class NewsPaper extends Subject{
    //报纸内容
    private String content;

    public void setContent(String content) {
        this.content = content;
        //报纸内容改变时候通知所有的观察者，就是读者
        notifyObservers();
    }

    public String getContent() {
        return content;
    }
}
